﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

namespace Prototypes
{
    /// <summary>
    /// Lógica de interacción para AllAudiences.xaml
    /// </summary>
    public partial class AllAudiences : UserControl
    {
        public class Information
        {
            public long Id { get; set; }
            public string Denunciante { get; set; }
            public string DenuncianteCi { get; set; }
            public string Denunciado { get; set; }
            public string DenunciadoCi { get; set; }
            public string Institucion { get; set; }
            public string Date { get; set; }
        }

        public AllAudiences()
        {
            InitializeComponent();
            listViewComplaints.DataContext = new ObservableCollection<Information>()
                            {
                                new Information() {Id=12352, Denunciante = "Peter Ruiz", DenuncianteCi = "4523422", Denunciado = "Pedro Mamani", DenunciadoCi = "Paquito Rivera", Institucion="Juzgado Departamental", Date="05/06/2011"},
                            };
        }

        private void MenuItem2_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new AudienceReport());
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Content.Children.Clear();
            Content.Children.Add(new AudienceReport());
        }
    }
}
